<!DOCTYPE html>
<html>
<#include "../head.html">
    <body>
    <div class="mc">
        <div class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                <#include "../adminInfo.html">
                    <!--管理员信息---}-->
                    <div class="nav-wrap">
                        <#include "left.html">
                    </div>
            </div>
            <!--左侧导航---}-->
        </div>
        <div class="mc-m">
            <div class="navToggle"></div>
        </div>
        <div class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
                <!--顶部导航---}-->

                <!--面包屑导航---{-->
                <#assign moduleName="当月销售额">
                    <#include "banner.html">
                        <!--面包屑导航---}-->

                        <!--工具栏--{-->
                        <div id="toolbar" class="clearfix">

                            <div class="toolbor-module search">
                                <input type="button" value="搜索"  class="input-button" onclick="sousuo();">
                            </div>

                            <div class="toolbor-module search">
                                <div class="formTit">年份：</div>
                                <input type="text" name="year" id="year" value="请输入年份" class="search-value">
                            </div>

                            <div class="toolbor-module search">
                                <div class="formTit">理财经理：</div>
                                <input type="text" name="userName" id="userName" value="请输入理财经理" class="search-value">
                            </div>

                        </div>


                        <!--工具栏--}-->

                        <div id="main" class="clearfix">
                            <form id="batchForm" action="" method="post">
                                <table class="data-list">
                                    <tr class="header">
                                        <td>客户经理</td>
                                        <td>年份</td>
                                        <td>1月</td>
                                        <td>2月</td>
                                        <td>3月</td>
                                        <td>4月</td>
                                        <td>5月</td>
                                        <td>6月</td>
                                        <td>7月</td>
                                        <td>8月</td>
                                        <td>9月</td>
                                        <td>10月</td>
                                        <td>11月</td>
                                        <td>12月</td>
                                        <td>合计</td>
                                    </tr>
                                    <#list list as item>
                                        <tr class="s">
                                            <td>${item.systemUser.realname!''}</td>
                                            <td>${item.year?c}</td>
                                            <td>${item.january?c}</td>
                                            <td>${item.february?c}</td>
                                            <td>${item.march?c}</td>
                                            <td>${item.april?c}</td>
                                            <td>${item.may?c}</td>
                                            <td>${item.june?c}</td>
                                            <td>${item.july?c}</td>
                                            <td>${item.august?c}</td>
                                            <td>${item.september?c}</td>
                                            <td>${item.october?c}</td>
                                            <td>${item.november?c}</td>
                                            <td>${item.december?c}</td>
                                            <td>${item.sum?c}</td>
                                        </tr>
                                    </#list>
                                    <!-- 拼接一个总和<tr></tr> -->
                                    <#if bean??>
                                        <tr class="s">
                                            <td>部门总计</td>
                                            <td><#if year??&& year !=''>${year}<#else>全部</#if></td>
                                            <td>${bean.januarySum?c}</td>
                                            <td>${bean.februarySum?c}</td>
                                            <td>${bean.marchSum?c}</td>
                                            <td>${bean.aprilSum?c}</td>
                                            <td>${bean.maySum?c}</td>
                                            <td>${bean.juneSum?c}</td>
                                            <td>${bean.julySum?c}</td>
                                            <td>${bean.augustSum?c}</td>
                                            <td>${bean.septemberSum?c}</td>
                                            <td>${bean.octoberSum?c}</td>
                                            <td>${bean.novemberSum?c}</td>
                                            <td>${bean.decemberSum?c}</td>
                                            <td>${bean.allSum?c}</td>
                                        </tr>
                                    </#if>
                                </table>
                            </form>


                            <!--底部工具栏--{-->
                            <div id="bottomToolbar" class="clearfix">
                                <div class="other-tool">
                                    <dl class="refresh-data">
                                        <dt class="refresh-data-icon"></dt>
                                        <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                    </dl>
                                </div>
                                <!--翻页系统--{-->

                                <!--翻页系统--}-->
                            </div>
                            <!--底部工具栏--}-->


                            <script>
                                var url = 'performanceIndex.html?search=true';
                                function sousuo(){
                                    var sou = "";
                                    var userName = $("#userName").val();
                                    var year = $("#year").val();

                                    if((userName!=null&&userName!=""&&userName!="undefined" && userName!="请输入理财经理")){
                                        sou += "&userName="+userName;
                                    }
                                    if((year!=null&&year!=""&&year!="undefined" && year!="请输入年份")){
                                        sou += "&year="+year;
                                    }

                                    if (sou!=""){
                                        location.href=url+sou;
                                    }
                                }

                            </script>
                        </div>
        </div>
    </div>
    <div class="mc-b">
        <#include "../foot.html">
    </div>
    <#include "../jsPage.html">
    </body>
</html>